﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddInnerMon.aspx.cs" Inherits="Web.admin.InnerManage.AddInnerMon" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../js/WebCalendar.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("#txtMoney").keydown(function (event) {
                var keyCode = event.which;
                if (keyCode == 46 || keyCode == 8 || keyCode == 190 || (keyCode >= 48 && keyCode <= 57) || (keyCode >= 96 && keyCode <= 105) || keyCode == 110) {
                    return true;
                }
                else { return false }
            }).focus(function () {
                this.style.imeMode = 'disabled';
            });
        });
        function CheckEmpty() {
            var emptyNmber = 0;
            $(".txtInput").each(function () {
                if ($(this).val() == "")
                    emptyNmber = emptyNmber + 1;
            });
            if (emptyNmber > 0) {
                alert("所有项为必填项，不允许为空");
                return false;
            }
            else
                return true;
        };

        function ClearToEmpty() {
            $(".txtInput").each(function () {
                $(this).val("");
            });
            return false;
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" /></td>
                        <td ><img src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>费用管理</span></td>
                        <td><img src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle"style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;校级竞赛任务&gt;费用管理</div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>费用项目: <input type="hidden" id="MoneyId" runat="server" /><input type="hidden" id="ContestId" runat="server" /></th>
                        <td><asp:TextBox ID="txtItem" runat="server" CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>说明：</th>
                        <td><asp:TextBox ID="txtComment" runat="server" CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>金额：</th>
                        <td><asp:TextBox ID="txtMoney" runat="server"  CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>经办人：</th>
                        <td><asp:TextBox ID="txtDealer" runat="server"  CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>日期：</th>
                        <td><asp:TextBox ID="txtDate" onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" runat="server"  CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Save" OnClientClick="return CheckEmpty();" runat="server" Text="保存" 
                            CssClass="btn_submit" onclick="btn_Save_Click" Height="30px" Width="73px" />
                        </td>
                        <td>
                            <asp:Button ID="btn_Reset" OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="content_table">
                <table class="msgtable">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <tr>
                                <th>预算项目</th>
                                <th>说明</th>
                                <th>预算费用</th>
                                
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><%#Eval("MON_ITEM")%> </td>
                                <td><%#Eval("MON_COMMENT")%></td>
                                <td><%#Eval("MON_NUMBER")%></td>
                                
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
             </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>

